package com.npr;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration;

import javax.annotation.PostConstruct;

@SpringBootApplication

public class CommunityApplication {
    @PostConstruct
    public void init(){
        //解决netty启动冲突问题
        //see Netty4Utils.setAvailableProcessors()
        System.setProperty("es.set.netty.runtime.available.process","false");
    }

    public static void main(String[] args) {
        SpringApplication.run(CommunityApplication.class, args);
    }

}
